﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Infrastructure
{
    public class Transition
    {
        public Type Event { get; private set; }
        public State TargetState {get; private set;}
        public Transition(Type @event, State targetState)
        {
            if (@event.IsInstanceOfType(typeof(Event)))
            {
                throw new ArgumentException(
                    "@event parameter must of type Event", "@event");
            }

            Event = @event;
            TargetState = targetState;
        }
    }
}
